//
//  SPickerTextView.h
//  STool
//
//  Created by Samuel on 15/9/9.
//
//

#import <UIKit/UIKit.h>




@protocol SPickerCoustomDelegate;
@protocol SPickerDateDelegate;
@interface SPickerTextView : UITextField<UIPickerViewDataSource,UIPickerViewDelegate>

@property (nonatomic, weak)NSObject<SPickerCoustomDelegate> *coustomDelegate;
@property (nonatomic, weak)NSObject<SPickerDateDelegate> *dateDelegate;

@property (nonatomic,strong)NSString *timestamp;
@end



@protocol SPickerCoustomDelegate <NSObject>

@required

@optional
- (NSString*)sPickerTextView:(SPickerTextView *)sPickerTextView stringWithIndexRow:(NSInteger)row;
- (NSInteger)numberWithRowInSPickerTextView;
@end

@protocol SPickerDateDelegate <NSObject>

@required

@optional
- (NSString*)sPickerTextView:(SPickerTextView *)sPickerTextView stringWithIndexRow:(NSInteger)row;
- (NSInteger)numberWithRowInSPickerTextView;
@end